Platform Explorer / Nuxeo Platform 11.3

Contribution org.nuxeo.ecm.diff.widgets.contrib--widgettypes

This contribution is part of XML component org.nuxeo.ecm.diff.widgets.contrib inside nuxeo-diff-jsf-11.3.jar /OSGI-INF/diff-widgets-contrib.xml

Extension Point

Extension point widgettypes of component WebLayoutManager.

Registration Order

0
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widgetType name="version_diff">
          <configuration>
            <title>Diff between live document and a version</title>
            <sinceVersion>5.7</sinceVersion>
            <description>
              <p>
                The version_diff widget displays difference between the live document and a specific version. If
                nothing is specified, last version is compared.
              </p>
              <p>
                It accepts the following properties:
                <ul>
                  <li>
                    versionLabel: the name of the expected label, defautl is "lastVersion"
                  </li>
                  <li>
                    propertyXPath: the property XPath, default is "file:content"
                  </li>
                  <li>
                    height: the iFrame height, default is "400px"
                  </li>
                </ul>
              </p>
            </description>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <categories>
              <category>summary</category>
            </categories>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">/widgets/version_diff_widget_template.xhtml</property>
        </widgetType>

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="version_diff">
      <configuration>
        <title>Diff between live document and a version</title>
        <sinceVersion>5.7</sinceVersion>
        <description>
          <p>
            The version_diff widget displays difference between the live document and a specific version. If
            nothing is specified, last version is compared.
          </p>
          <p>
            It accepts the following properties:
            <ul>
              <li>
                versionLabel: the name of the expected label, defautl is "lastVersion"
              </li>
              <li>
                propertyXPath: the property XPath, default is "file:content"
              </li>
              <li>
                height: the iFrame height, default is "400px"
              </li>
            </ul>
          </p>
        </description>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <categories>
          <category>summary</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/version_diff_widget_template.xhtml</property>
    </widgetType>
  </extension>